package com.sunnyweather.android.ui.adapter

import com.sunnyweather.android.R
import com.zhpan.bannerview.BaseBannerAdapter
import com.zhpan.bannerview.BaseViewHolder

class HomeAdapter: BaseBannerAdapter<CustomBean>() {
    override fun bindData(
        holder: BaseViewHolder<CustomBean>?,
        data: CustomBean?,
        position: Int,
        pageSize: Int
    ) {
        holder?.setImageResource(R.id.banner_image, data!!.imageRes)
    }

    override fun getLayoutId(viewType: Int): Int {
        return R.layout.item_custom_home_view;
    }
}